<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>基本列表</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id="root">
    <h1>员工信息</h1>
    <ul>
      <li v-for="(s,index) in staff" :key="index">
        {{s.name}}
      </li>
    </ul>

    <h1>汽车信息</h1>
    <ul>
      <li v-for="(c,index) in car" :key="index">
        {{c}}
      </li>
    </ul>

    <h1>网址信息</h1>
    <ul>
      <li v-for="(str,index) in url" :key="index">
        {{str}}
      </li>
    </ul>

    <h1>次数信息</h1>
    <ul>
      <li v-for="(item,index) in 5" :key="index">
        {{item}}
      </li>
    </ul>
  </div>
</body>

<script type="text/javascript">
  Vue.config.productionTip = false;

  new Vue({
    el: '#root',
    data: {
      staff: [{ name: "张三", age: 18 }, { name: "李四", age: 19 }, { name: "王五", age: 20 }],
      car: { name: "宝马", price: 10000 },
      url: "https://www.baidu.com"
    }
  })
</script>

</html>